<?php

require 'header.php';

?>
      <div class="middle">
		<div class="simple-container-left" id="page:main-container">
			<div class="container" id="page:container">
				<div class="main">
					<div class="content-container">
						<div class="content" id="content">
							<div class="content-header">
								<table class="grid-header" cellspacing="0" border="0" >
									<tbody>
										<tr>
											<td width="60%"><h3 class="icon-head head-customer">Manage Loan</h3></td>
                                            <td ><h3 class="icon-head head-user">ID : 20080001 &nbsp; Name : Jundie Chan</h3></td>
										</tr>
									</tbody>
								</table>
							</div>
                            <div class="content-container" >
                            <table width="100%">
                                        <tr align="left">
                                            <td >
												<button type="button" class="scalable save" onclick="setLocation('loan.php')" style=""><span>Search</span></button>
                                                <button type="button" class="scalable add" onclick="setLocation('add_payments.php')" style=""><span>Add Payments</span></button>
										    </td>
										</tr>
                            </table>
                             <br />
                            </div>
							<form name="form1" id="form1" action="/" method="post">
							<div class="entry-edit">    
                                 <br /> <br />
								<h4 class="icon-head head-edit-form fieldset-legend">Loan Information</h4>
                                   <table width="100%" border="0" cellspacing="5">
									<table width="100%" cellspacing="10" border="0" style="background-color:#eeeeee" >
									<tbody>
								        <tr>
         							            <td>
                                                                             <table width="100%" cellspacing="0" border="0">
                                                                              <tr>
                                                                                  <td width="50%">
                                                                                      <table width="100%" cellspacing="5" border="0">
                                                                                             <tr>
									                         <td width="50%">Loan ID<span class="required">*</span></td>
												 <td width="50%">1 
                                                 <a href="edit_loan.php"><span>Edit </span></a>
                                                 </td>
											     </tr>
											     <tr>
											    	 <td>Borrower ID <span class="required">*</span></td>
												 <td><input name="borrower_id" value="20080001" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Co-Borrower ID <span class="required">*</span></td>
												 <td><input name="borrower_id" value="20080002" class="required-entry required-entry input-text" type="text"></td>
											     </tr>

                                                 <tr>
											    	                                   <td>Inquiry Date<span class="required">*</span></td>
												                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
  											                                       </tr>
											                                       <tr>
											    	                                   <td>Application Date<span class="required">*</span></td>
												                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
											                                       </tr>
											                                       <tr>
											    	                                   <td><select id="_loan_status_id" name="loan[status_id]" class="required-entry required-entry select" type="select">
													                                               <option value="1">Pending</option>
                                                                                                   <option value="2">Approved</option>
													                                               <option value="3">Denied</option>
													                                       </select> &nbsp; Date
									                                                   </td>
                                                                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
											                                       </tr>
                                                                                   <tr>
											    	                                   <td>Release Pending Date<span class="required">*</span></td>
												                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
											                                       </tr>
                                                                                   <tr>
											    	                                   <td>In Repayment Date<span class="required">*</span></td>
												                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
											                                       </tr>
											                                       <tr>
											    	                                   <td>Paid In Full Date<span class="required">*</span></td>
												                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
											                                       </tr>
                                                                                   <tr>
											    	                                   <td>Delinquent Date<span class="required">*</span></td>
												                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
  											                                       </tr>
											                                       <tr>
											    	                                   <td>Default Date<span class="required">*</span></td>
												                                       <td><input name="borrower_id" value="" class="required-entry required-entry input-text" type="text"></td>
											                                       </tr>
                                                 </table>

                                                                                  </td>
                                                                    <td width="50%">
                                                     <table width="100%" cellspacing="5" border="0">
                                                  <tr>
											    	 <td>Collector ID <span class="required">*</span></td>
												 <td><input name="borrower_id" value="Nilo" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Date PN Signed <span class="required">*</span></td>
												 <td><input name="borrower_id" value="02/25/2008" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Surcharges <span class="required">*</span></td>
												 <td><input name="borrower_id" value="0" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
                                                 <tr>
									                         <td width="50%">Total Loan Amount<span class="required">*</span></td>
                                                                                                 <td><input name="borrower_id" value="10000" class="required-entry required-entry input-text" type="text"></td>
											     </tr> 
											     <tr>
											    	 <td>Principal <span class="required">*</span></td>
												 <td><input name="borrower_id" value="9000" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Interest (%) <span class="required">*</span></td>
												 <td><input name="borrower_id" value="10" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Loan Payment (Days)<span class="required">*</span></td>
												 <td><input name="borrower_id" value="60" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Monthly Approved <span class="required">*</span></td>
												 <td><input name="borrower_id" value="5000" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Loan Start Date <span class="required">*</span></td>
												 <td><input name="borrower_id" value="02/28/2008" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
											     <tr>
											    	 <td>Total Amount Paid<span class="required">*</span></td>
                                                                                                 <td><input name="borrower_id" value="300" class="required-entry required-entry input-text" type="text"></td>
											     </tr>
                                                                                      </table>

                                                                                  </td>
                                                                              </tr>
                                                                             </table>
         							         <!--
									    <table width="100%" cellspacing="0" border="1">
									           <tbody>
                                                                                          <tr>
                                                                                              <td width="10%" style="background-color:#C6DEFF">Loan ID</td>
                          			                                              <td width="10%" style="background-color:#ffffff">1</td>
                          			                                              <td width="10%" style="background-color:#C6DEFF">Total Loan Amount</td>
                          			                                              <td width="10%" style="background-color:#ffffff">10000</td>
                                                                                          </tr>
                                                                                           <tr>
                                                                                              <td width="10%" style="background-color:#C6DEFF">Borrower ID</td>
                          			                                              <td width="10%" style="background-color:#ffffff">20080001</td>
                          			                                              <td width="10%" style="background-color:#C6DEFF">Principal</td>
                          			                                              <td width="10%" style="background-color:#ffffff">9000</td>
                                                                                          </tr>
                                                                                            <tr>
                                                                                              <td width="10%" style="background-color:#C6DEFF">Co-Borrower ID</td>
                          			                                              <td width="10%" style="background-color:#ffffff">20080002</td>
                          			                                              <td width="10%" style="background-color:#C6DEFF">Interest (%)</td>
                          			                                              <td width="10%" style="background-color:#ffffff">10</td>
                                                                                          </tr>
                                                                                            <tr>
                                                                                              <td width="10%" style="background-color:#C6DEFF">Collector ID</td>
                          			                                              <td width="10%" style="background-color:#ffffff">Nilo</td>
                          			                                              <td width="10%" style="background-color:#C6DEFF">Loan Payment (Days)</td>
                          			                                              <td width="10%" style="background-color:#ffffff">60</td>
                                                                                          </tr>
                                                                                            <tr>
                                                                                              <td width="10%" style="background-color:#C6DEFF">Date PN Signed</td>
                          			                                              <td width="10%" style="background-color:#ffffff">02/25/2008</td>
                          			                                              <td width="10%" style="background-color:#C6DEFF">Monthly Approved</td>
                          			                                              <td width="10%" style="background-color:#ffffff">5000</td>
                                                                                          </tr>
                                                                                            <tr>
                                                                                              <td width="10%" style="background-color:#C6DEFF">Surcharges</td>
                          			                                              <td width="10%" style="background-color:#ffffff">0</td>
                          			                                              <td width="10%" style="background-color:#C6DEFF">Loan Start Date</td>
                          			                                              <td width="10%" style="background-color:#ffffff">02/28/2008</td>
                                                                                          </tr>
                                                                                            <tr>
                                                                                              <td width="10%" style="background-color:#C6DEFF">Loan Status</td>
                          			                                              <td width="10%" style="background-color:#ffffff">In Repayment</td>
                          			                                              <td width="10%" style="background-color:#C6DEFF">Total Amount Paid</td>
                          			                                              <td width="10%" style="background-color:#ffffff">300</td>
                                                                                          </tr>

                                                                                   </tbody>
									           </table>
									      -->
	                                                                    </td>
	                                                                    </tr>
	                                                                    <tr>
	                                                                    <td>
	                                                                        <table width="100%" cellspacing="0" border="1" >
	                                                                               <tr align="center" style="background-color:#C6DEFF" class="headings">
	                                                                                   <td>Payment ID</td>
	                                                                                   <td>Loan ID</td>
	                                                                                   <td>Amount Due</td>
	                                                                                   <td>Amount Due Date</td>
	                                                                                   <td>Amount Paid</td>
	                                                                                   <td>Amount Paid Date</td>
                                                                                       </tr>
                                                                                       <tr align="center" style="background-color:#eeeeee">
	                                                                                   <td>1</td>
	                                                                                   <td>1</td>
	                                                                                   <td>150</td>
	                                                                                   <td>02/29/08</td>
	                                                                                   <td>150</td>
	                                                                                   <td>02/29/08</td>
                                                                                       </tr>
                                                                                       <tr align="center" style="background-color:#ffffff">
	                                                                                   <td>2</td>
	                                                                                   <td>1</td>
	                                                                                   <td>150</td>
	                                                                                   <td>03/01/08</td>
	                                                                                   <td>150</td>
	                                                                                   <td>03/01/08</td>
                                                                                       </tr>
                                                                                </table>
	                                                                    </td>
	                                                                    </tr>
										</tbody>
									</table>

							</div>
							

							</form>
						</div>
					</div>
					
					<div class="section-menu" id="page:left">
						<h3>Loan Center</h3>
						<ul id="loan_info_tabs" class="tabs">
							<li>
						        <a href="loan_view.php" title="Loan" class="tab-item-link active">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div>Loan Information</span>
						        </a>
						    </li>
						    <li>
						        <a href="borrower_view.php" title="View Loans" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div>Borrower Information</span>
						        </a>
						    </li>
                            <li>
						        <a href="co_borrower_view.php" title="View Loans" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div>Co-Borrower Information</span>
						        </a>
						    </li>
                            <li>
						        <a href="business_view.php" title="View Loans" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div>Business Information</span>
						        </a>
						    </li>
                            <li>
						        <a href="collateral_view.php" title="View Loans" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div>Collateral Items</span>
						        </a>
						    </li>
                            <li>
						        <a href="notes_view.php" title="View Loans" class="tab-item-link">
					            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
								</div>Notes</span>
						        </a>
						    </li>
						</ul>

						<div class="bottom"></div>
					</div>
              	</div>
			</div>
		</div>
	</div>

<?php

require 'footer.php';

?>